﻿using Caliburn.Micro;

namespace Wulong.Phone.Dianping.ViewModels
{
    public abstract class PaginationViewModelBase : DianpingViewModelBase
    {
        public int Page { get; set; }
        private bool _canLoadMore;
        public bool CanLoadMore
        {
            get { return _canLoadMore; }
            set
            {
                _canLoadMore = value;
                NotifyOfPropertyChange(() => CanLoadMore);
            }
        }
        private bool _isBusy;
        public bool IsBusy
        {
            get { return _isBusy; }
            set
            {
                _isBusy = value;
                NotifyOfPropertyChange(() => IsBusy);
                NotifyOfPropertyChange(() => CanLoadMore);
            }
        }
    }
}
